package com.befirefly.community.enums;

public enum CommentTypeEnum {

	Question(1), Comment(2);

	private Integer type;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	CommentTypeEnum(Integer type) {
		this.type = type;
	}

	public static boolean isExist(Integer type) {
		for (CommentTypeEnum commentTypeEnum : CommentTypeEnum.values()) {
			if (commentTypeEnum.getType() == type) {
				return true;
			}
		}
		return false;
	}
}
